const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // lintOnSave:false,
  //devServer配置自动打开浏览器
  devServer:{
    //开启自动打开浏览器
    open:true,
    //本地地址
    host:'127.0.0.1',
    //端口号
    port:8888,
    proxy:{
      '/api1':{
        target:'http://gmall-h5-api.atguigu.cn/',
        changeOrigin:true,
        pathRewrite:{
          '^/api1':''
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
        alias: {
            "@assets": "@/assets",
            "@comp": "@/components",
            "@pages": "@/pages",
        },
    },
  },
})
